package com.mes.dao.yzl;

import com.mes.entity.hpf.SalePlanDetail;
import com.mes.entity.yzl.*;
import com.mes.entity.yzlExtend.ExtendCustomerOrder;
import com.mes.entity.yzlExtend.ExtendProductor;

import java.util.List;

public interface CustomerOrderMapper {

    int orderApproveds(List<Integer> list);

    int closePlan(Integer id);

    int countNew(Condition condition);

    List<CustomerOrder> listcustomerOrderNew(Condition condition);

    int checkNumUnique(String str);

    List<Customer> customerList();

    List<Productor> carList();

    long addCustomerOrder(CustomerOrder customerOrder);

    int addCentor(ProContactOrder proContactOrder);

    List<SalePlanDetail> customerOrderXq(long id);

    ExtendCustomerOrder findOrderById(long id);

    long updateCustomerOrder(CustomerOrder customerOrder);

    int updateCentor(ProContactOrder proContactOrder);

    int deleteOrder(long id);

    void deletePro(long id);

    int orderUnApproveds(List<Integer> list);
    
    ProContactOrder findProOrderById(long id);
    
    List<CustomerOrder> listAllCustomerOrder();
    
    List<Productor> carPageList(Condition condition);
	
	int carCount();
	
	int addSalePlanDetail(SalePlanDetail salePlanDetail);
	
	SalePlanDetail findPlanDetailById(long id);
	
	int updatePlanDetail(SalePlanDetail salePlanDetail);
	
	void deletePlanDetial(long id);

}
